package com.zhouyu.service;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @author leimingchao
 * create 2025-05-02 22:15
 * FactoryBean可以干预bean的创建过程，并且有懒加载的作用，创建的对象会经过bean的初始化后的方法
 */
//@Component(value = "userService")
public class ZhouyuFactoryBean implements FactoryBean {
	@Override
	public Object getObject() throws Exception {
		//创建的对象放入factoryBeanObjectCache中
		//return new UserService();
		return null;
	}

	@Override
	public Class<?> getObjectType() {
		return UserService.class;
	}
}
